<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$websetup.webname}</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/index.css" />
</head>
<body>
<!-- layout::Home:Public:top::0 -->
<div class="all_div mt8">
	<div>当前位置：<a href="__APP__">首页</a>&nbsp;&gt;&nbsp;<span id="site_tit"><a href="{:U('Cart/index')}">购物车</a></span></div>
	<div id="" class="">
		<div class="news_tit">购物车列表</div>
		<div class="news_con">
		  <form id="form_cart" name="form_cart" method="post" action="{:U('Cart/update_cart')}">
				<table border="0" cellspacing="0" cellpadding="0" width="100%" class="cart_list">
					<tr>
						<td align="center" valign="middle"><strong>商品名称</strong></td>
						<td align="center" valign="middle"><strong>窗纱型号</strong></td>
						<td align="center" valign="middle"><strong>市场价</strong></td>
						<td align="center" valign="middle"><strong>售价</strong></td>
						<td align="center" valign="middle"><strong>购买数量</strong></td>
						<td align="center" valign="middle"><strong>小计</strong></td>
						<td align="center" valign="middle"><strong>操作</strong></td>
					</tr>
                    <volist name="cart_pr" id="vo">
                    <tr>
						<td align="center" valign="middle"><a href="{$vo['pr_info']['pr_url']}"><img src="__ROOT__/{$vo['pr_info']['pr_list_pic']|encode_spic='l'}" width="98" height="98" border="0" alt=""><br />{$vo['pr_info']['pr_name']}</a></td>
						<td align="center" valign="middle">{$vo['pr_info']['pr_sn']}</td>
						<td align="center" valign="middle" class="cart_old">市场价<span>￥{$vo['pr_info']['pr_market_price']}</span></td>
						<td align="center" valign="middle">￥{$vo['pr_info']['pr_shop_price']}元</td>
						<td align="center" valign="middle"><input type="text" name="buy_num[]" value="{$vo.buy_num}" class="cart_num"><input type="hidden" name="pr_id[]" value="{$vo.pr_id}"/>
                        </td>
						<td align="center" valign="middle">￥{$vo.sub_shop}元</td>
						<td align="center" valign="middle" class="cart_del"><a href="{:U('Cart/delete/id/'.$vo['pr_id'])}">删除</a></td>
					</tr>
                    </volist>
			  </table>
				<div class="clearfix cart_xji">
					<div class="fl_l">
						购物金额小计￥{$all_shop_price}元，比市场价￥{$all_market_price}元节省了￥{$save_fee}元
					</div>
					<div class="fl_r">
						<span class="cart_cz1"><a href="{:U('Cart/deleteall')}">清空</a></span><span class="cart_cz1"><a href="javascript:document.form_cart.submit();">更新</a></span>		
					</div>
				</div>
				<div class="clearfix mt8">
					<div class="fl_l"><a href="{:U('Product/index')}" onfocus="this.blur();"><img src="__PUBLIC__/images/home/jxgw.gif" width="114" height="40" border="0" alt=""></a></div>
					<div class="fl_r"><input type="button" value="" class="cart_btn" onclick="location.href='{:U('Order/index/all_shop_price/'.$all_shop_price)}'"></div>
				</div>
		  </form>
	  </div>
	</div>
</div>
<!-- layout::Home:Public:bottom::-1 -->
</body>
</html>